package GUI;

import Controladores.ControladorEvento;
import Logico.Evento;
import java.util.Date;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

public class EventoGUI extends javax.swing.JPanel {

    ControladorEvento controladorEvento;
    int idevento;
    String nombre;
    String descripcion;
    Date fechaInicio;
    Date fechaFin;
    int idDirector;
    int idDAdministrativo;
    int idDDeportivo;
    int idDLogistica;
    String logo;
    List<Evento> listaEventos;
    int indice;

    public EventoGUI() {
        initComponents();
        controladorEvento = new ControladorEvento();
        listaEventos = controladorEvento.listarEventos();
        idevento = 0;
        idDirector = 0;
        idDAdministrativo = 0;
        idDDeportivo = 0;
        idDLogistica = 0;
        indice = 0;
        inicializarTabla();
    }

    public void inicializarTabla() {
        tablaEventos.removeAll();
        DefaultTableModel modelo = (DefaultTableModel) tablaEventos.getModel();
        modelo.setRowCount(0);

        for (int i = 0; i < listaEventos.size(); i++) {
            String temp[] = new String[9];

            temp[0] = listaEventos.get(i).getIdevento() + "";
            temp[1] = listaEventos.get(i).getNombre() + "";
            temp[2] = listaEventos.get(i).getDescripcion() + "";
            temp[3] = listaEventos.get(i).getFechaInicio().toString() + "";
            temp[4] = listaEventos.get(i).getFechaFin().toString() + "";
            temp[5] = listaEventos.get(i).getCeduladirectorevento().getCedula() + "";
            temp[6] = listaEventos.get(i).getCeduladirectoradministrativo().getCedula() + "";
            temp[7] = listaEventos.get(i).getCeduladirectordeportivo().getCedula() + "";
            temp[8] = listaEventos.get(i).getCeduladirectorlogistica().getCedula() + "";

            Object nuevo[] = null;
            modelo.addRow(nuevo);
            tablaEventos.setModel(modelo);
            for (int j = 0; j < temp.length; j++) {
                tablaEventos.setValueAt(temp[j], i, j);
            }
        }

        if (listaEventos.size() > 0) {
            indice = 0;
            actualizarFormulario();
        }

    }

    public void actualizarFormulario() {
        idevento = listaEventos.get(indice).getIdevento();
        campoId.setText(idevento + "");
        nombre = listaEventos.get(indice).getNombre();
        campoNombre.setText(nombre);
        descripcion = listaEventos.get(indice).getDescripcion();
        campoDescripcion.setText(descripcion);
        fechaInicio = listaEventos.get(indice).getFechaInicio();
        campoFechaInicio.setDate(fechaInicio);
        fechaFin = listaEventos.get(indice).getFechaFin();
        campoFechaFin.setDate(fechaFin);
        idDirector = listaEventos.get(indice).getCeduladirectorevento().getCedula();
        campoDirector.setText(idDirector + "");
        idDAdministrativo = listaEventos.get(indice).getCeduladirectoradministrativo().getCedula();
        campoAdministrativo.setText(idDAdministrativo + "");
        idDDeportivo = listaEventos.get(indice).getCeduladirectordeportivo().getCedula();
        campoDeportivo.setText(idDDeportivo + "");
        idDLogistica = listaEventos.get(indice).getCeduladirectorlogistica().getCedula();
        campoLogistica.setText(idDLogistica + "");
    }

    public void limpiarFormulario() {
        idevento = 0;
        campoId.setText(idevento + "");
        nombre = "";
        campoNombre.setText(nombre);
        descripcion = "";
        campoDescripcion.setText(descripcion);
        fechaInicio = new Date();
        campoFechaInicio.setDate(fechaInicio);
        fechaFin = new Date();
        campoFechaFin.setDate(fechaFin);
        idDirector = 0;
        campoDirector.setText(idDirector + "");
        idDAdministrativo = 0;
        campoAdministrativo.setText(idDAdministrativo + "");
        idDDeportivo = 0;
        campoDeportivo.setText(idDDeportivo + "");
        idDLogistica = 0;
        campoLogistica.setText(idDLogistica + "");
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        campoDescripcion = new javax.swing.JTextField();
        campoNombre = new javax.swing.JTextField();
        campoId = new javax.swing.JTextField();
        botonGuardar = new javax.swing.JButton();
        botonActualizar = new javax.swing.JButton();
        botonEliminar = new javax.swing.JButton();
        botonBuscar = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        tablaEventos = new javax.swing.JTable();
        botonAnterior = new javax.swing.JButton();
        botonSiguiente = new javax.swing.JButton();
        botonLimpiar = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        campoFechaInicio = new com.toedter.calendar.JDateChooser();
        campoFechaFin = new com.toedter.calendar.JDateChooser();
        botonCargar = new javax.swing.JButton();
        panelLogo = new javax.swing.JPanel();
        campoDirector = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        campoDeportivo = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        campoAdministrativo = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        campoLogistica = new javax.swing.JTextField();

        jLabel1.setText("Numero");

        jLabel2.setText("Nombre");

        jLabel3.setText("Descripción");

        jLabel4.setText("Director");

        botonGuardar.setText("Guardar");
        botonGuardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonGuardarActionPerformed(evt);
            }
        });

        botonActualizar.setText("Actualizar");
        botonActualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonActualizarActionPerformed(evt);
            }
        });

        botonEliminar.setText("Eliminar");
        botonEliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonEliminarActionPerformed(evt);
            }
        });

        botonBuscar.setText("Buscar");
        botonBuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonBuscarActionPerformed(evt);
            }
        });

        tablaEventos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Numero", "Nombre", "Descripción", "Fecha Inicio", "Fecha Fin", "Director", "D. Administrativo", "D. Deportivo", "D. Logistica"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tablaEventos);

        botonAnterior.setText("<<");
        botonAnterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonAnteriorActionPerformed(evt);
            }
        });

        botonSiguiente.setText(">>");
        botonSiguiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonSiguienteActionPerformed(evt);
            }
        });

        botonLimpiar.setText("Limpiar");
        botonLimpiar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonLimpiarActionPerformed(evt);
            }
        });

        jLabel6.setText("Fecha Inicio");

        jLabel7.setText("Fecha Fin");

        jLabel8.setText("Logo");

        botonCargar.setText("Cargar");

        panelLogo.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        javax.swing.GroupLayout panelLogoLayout = new javax.swing.GroupLayout(panelLogo);
        panelLogo.setLayout(panelLogoLayout);
        panelLogoLayout.setHorizontalGroup(
            panelLogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        panelLogoLayout.setVerticalGroup(
            panelLogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        jLabel5.setText("D. Deportivo");

        jLabel9.setText("D. Administrativo");

        jLabel10.setText("D. Logistica");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(botonGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(botonActualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel4)
                                            .addComponent(jLabel3)
                                            .addComponent(jLabel2)
                                            .addComponent(jLabel1))
                                        .addGap(20, 20, 20))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel5)
                                        .addGap(13, 13, 13)))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(campoDeportivo, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                                    .addComponent(campoDescripcion, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(campoNombre, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(campoId, javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(campoDirector, javax.swing.GroupLayout.Alignment.LEADING))))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(botonEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(botonBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(botonLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel6)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel8)
                                    .addComponent(jLabel9)
                                    .addComponent(jLabel10))
                                .addGap(26, 26, 26)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(campoFechaFin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(botonCargar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(campoFechaInicio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(campoAdministrativo)
                                    .addComponent(campoLogistica))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(botonAnterior)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(botonSiguiente))
                            .addComponent(panelLogo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel1)
                                .addComponent(campoId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel6))
                            .addComponent(campoFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel2)
                                .addComponent(campoNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel7))
                            .addComponent(campoFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(botonCargar)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel3)
                                .addComponent(campoDescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel8)))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(campoDirector, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9)
                            .addComponent(campoAdministrativo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(panelLogo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(15, 15, 15)
                        .addComponent(jLabel5))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(campoDeportivo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10)
                            .addComponent(campoLogistica, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botonGuardar)
                    .addComponent(botonActualizar)
                    .addComponent(botonEliminar)
                    .addComponent(botonBuscar)
                    .addComponent(botonAnterior)
                    .addComponent(botonSiguiente)
                    .addComponent(botonLimpiar))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 244, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void botonGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonGuardarActionPerformed
        if (!campoNombre.getText().equals("") && !campoDescripcion.getText().equals("")) {

            nombre = campoNombre.getText();
            descripcion = campoDescripcion.getText();
            fechaInicio = campoFechaInicio.getDate();
            fechaFin = campoFechaFin.getDate();
            idDirector = Integer.parseInt(campoDirector.getText());
            idDAdministrativo = Integer.parseInt(campoAdministrativo.getText());
            idDDeportivo = Integer.parseInt(campoDeportivo.getText());
            idDLogistica = Integer.parseInt(campoLogistica.getText());

            boolean registrado = controladorEvento.guardar(nombre, descripcion, fechaInicio, fechaFin, idDirector, idDAdministrativo, idDDeportivo, idDLogistica, logo);

            if (registrado) {
                JOptionPane.showMessageDialog(null, "Evento registrado con exito");
                listaEventos = controladorEvento.listarEventos();
                inicializarTabla();
            } else {
                JOptionPane.showMessageDialog(null, "Evento no se pudo registrar");
            }
        } else {
            JOptionPane.showMessageDialog(null, "Ingrese los datos del evento");
        }

    }//GEN-LAST:event_botonGuardarActionPerformed

    private void botonActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonActualizarActionPerformed
        
        if (campoId.getText().equals("") || campoDirector.getText().equals("")) {
            JOptionPane.showMessageDialog(null, "Los campos obligatorios (*) no deben estar vacios");

        } else {
        
            idevento = Integer.parseInt(campoId.getText());
            nombre = campoNombre.getText();
            descripcion = campoDescripcion.getText();
            fechaInicio = campoFechaInicio.getDate();
            fechaFin = campoFechaFin.getDate();
            idDirector = Integer.parseInt(campoDirector.getText());
            idDAdministrativo = Integer.parseInt(campoAdministrativo.getText());
            idDDeportivo = Integer.parseInt(campoDeportivo.getText());
            idDLogistica = Integer.parseInt(campoLogistica.getText());

            boolean actualizado = controladorEvento.modificar(idevento, nombre, descripcion, fechaInicio, fechaFin, idDirector, idDAdministrativo, idDDeportivo, idDLogistica, logo);

            if (actualizado) {
                JOptionPane.showMessageDialog(null, "Evento actualizado con exito");
            } else {
                JOptionPane.showMessageDialog(null, "Evento no pudo ser actualizado");
            }
        }
    }//GEN-LAST:event_botonActualizarActionPerformed

    private void botonEliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonEliminarActionPerformed

        if (idevento != 0) {
            idevento = Integer.parseInt(campoId.getText());
            boolean borrado = controladorEvento.borrar(idevento);

            if (borrado) {
                JOptionPane.showMessageDialog(null, "Evento eliminado con exito");
                limpiarFormulario();
                listaEventos = controladorEvento.listarEventos();
                inicializarTabla();
            } else {
                JOptionPane.showMessageDialog(null, "evento no se pudo eliminar");
            }
        } else {
            JOptionPane.showMessageDialog(null, "Ingrese un numero de evento");
        }
    }//GEN-LAST:event_botonEliminarActionPerformed

    private void botonBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonBuscarActionPerformed

        if (idevento != 0) {
            Evento e = controladorEvento.buscar(idevento);
            if (e != null) {
                listaEventos.removeAll(listaEventos);
                listaEventos.add(e);
                inicializarTabla();
            } else {
                JOptionPane.showMessageDialog(null, "No se encontro el evento " + idevento);
            }
        } else {
            JOptionPane.showMessageDialog(null, "Seleccione un evento");
        }
    }//GEN-LAST:event_botonBuscarActionPerformed

    private void botonAnteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonAnteriorActionPerformed

        if (indice > 0) {
            indice--;
            actualizarFormulario();
        }
    }//GEN-LAST:event_botonAnteriorActionPerformed

    private void botonSiguienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonSiguienteActionPerformed

        if (indice < listaEventos.size() - 1) {
            indice++;
            actualizarFormulario();
        }
    }//GEN-LAST:event_botonSiguienteActionPerformed

    private void botonLimpiarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonLimpiarActionPerformed

        limpiarFormulario();
    }//GEN-LAST:event_botonLimpiarActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonActualizar;
    private javax.swing.JButton botonAnterior;
    private javax.swing.JButton botonBuscar;
    private javax.swing.JButton botonCargar;
    private javax.swing.JButton botonEliminar;
    private javax.swing.JButton botonGuardar;
    private javax.swing.JButton botonLimpiar;
    private javax.swing.JButton botonSiguiente;
    private javax.swing.JTextField campoAdministrativo;
    private javax.swing.JTextField campoDeportivo;
    private javax.swing.JTextField campoDescripcion;
    private javax.swing.JTextField campoDirector;
    private com.toedter.calendar.JDateChooser campoFechaFin;
    private com.toedter.calendar.JDateChooser campoFechaInicio;
    private javax.swing.JTextField campoId;
    private javax.swing.JTextField campoLogistica;
    private javax.swing.JTextField campoNombre;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel panelLogo;
    private javax.swing.JTable tablaEventos;
    // End of variables declaration//GEN-END:variables
}
